package keqiang.com.kq_flutter_core_widget.channel;

import io.flutter.plugin.common.EventChannel;

/**
 * 蓝牙开关回调处理
 *
 * @author zhouzhuo810
 * @date 2024/1/23 16:58
 */
public class NativeBleEnableHandler implements EventChannel.StreamHandler {
    EventChannel.EventSink mEventSink;
    
    @Override
    public void onListen(Object arguments, EventChannel.EventSink events) {
        mEventSink = events;
    }
    
    @Override
    public void onCancel(Object arguments) {
        mEventSink = null;
    }
    
    public EventChannel.EventSink getEventSink() {
        return mEventSink;
    }
}
